Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stm32cube: stm32h5: ethernet: PTP clock doesn’t works #179

Merged
merged 1 commit into from
Sep 27, 2023

Conversation

Desvauxm-st
Copy link
Collaborator

fix to the HAL_API_V2 to get PTP to work
In the HAL_ETH_ReadData function where it checks for the last descriptor, I added a checked if the TSA bit was set in DESC1
If the TSA bit is set then have a peak at the context descriptor which should be the one after the last
descriptor
If the CTXT bit is set in the context descriptor then extract the timestamps

update README to fix to the V2 HAL API to get PTP to work

@Desvauxm-st
Copy link
Collaborator Author

issue come from:
stm32h5: samples/net/gptp doesn't work at all #62465

Copy link
Member

@erwango erwango left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Otherwise LGTM

stm32cube/stm32h5xx/README Show resolved Hide resolved
stm32cube/stm32h5xx/README Show resolved Hide resolved
fix to the HAL_API_V2 to get PTP to work
In the HAL_ETH_ReadData function where it checks for the
last descriptor, I added a checked if the TSA bit was set
in DESC1
If the TSA bit is set then have a peak at the context
descriptor which should be the one after the last
descriptor
If the CTXT bit is set in the context descriptor then
extract the timestamps

update README to fix to the V2 HAL API to get PTP to work

Signed-off-by: blackhelicopters <[email protected]>
Signed-off-by: Marc Desvaux <[email protected]>
@Desvauxm-st
Copy link
Collaborator Author

@gautierg-st
@FRASTM
can you have a look on this PR

@erwango erwango merged commit 89ef0a3 into zephyrproject-rtos:main Sep 27, 2023
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants